﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" CodeFile="insert.aspx.cs" Inherits="aspx_admin_video_insert" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    需要添加的视频类别：<asp:DropDownList runat="server" ID="ddl视频类别" AutoPostBack="True" OnSelectedIndexChanged="ddl视频类别_SelectedIndexChanged">
        <asp:ListItem Text="名师讲堂视频" />
        <asp:ListItem Text="其他类别视频" />
    </asp:DropDownList>
    <asp:MultiView ActiveViewIndex="0" runat="server" ID="mv视频类别">
        <asp:View runat="server">

            <table>
                <tr>
                    <td>讲堂名称：</td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddl讲堂ID" DataSourceID="ods讲堂" DataTextField="标题" DataValueField="讲堂ID">
                            <asp:ListItem Text="text1" />
                            <asp:ListItem Text="text2" />
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>

            <asp:ObjectDataSource ID="ods讲堂" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ds_名师讲堂TableAdapters.tb_讲堂TableAdapter"></asp:ObjectDataSource>
        </asp:View>
        <asp:View runat="server">
            <table>
                <tr>
                    <td colspan="2">标题：*
                        <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txt标题" runat="server" />
                        <asp:TextBox runat="server" ID="txt标题" Columns="100" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">详细介绍：*
                        <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txt详情" runat="server" /></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox runat="server" ID="txt详情" TextMode="MultiLine" Columns="100" Rows="15" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    <table>
        <tr>
            <td>发布时间：</td>
            <td>
                <asp:TextBox ID="txt发布时间" runat="server" Columns="80" CausesValidation="true" CssClass="date" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="*" ControlToValidate="txt发布时间" runat="server" Display="Dynamic" />
            </td>
        </tr>
        <tr>
            <td>点击量：</td>
            <td>
                <asp:TextBox ID="txt点击量" runat="server" Style="margin-bottom: 0px" Columns="80" CausesValidation="true" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ErrorMessage="输入正整数" ControlToValidate="txt点击量" runat="server" ValidationExpression="\d+" />
            </td>
        </tr>
        <tr>
            <td>视频：</td>
            <td>
                <asp:FileUpload ID="fu" runat="server" />
            </td>
        </tr>
        <tr>
            <td>置顶：
            </td>
            <td>
                <asp:CheckBox runat="server" ID="ccb置顶" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" CssClass="btn" Text="发布" OnClick="InsertButton_Click" />
            </td>
        </tr>
    </table>
</asp:Content>